import request from '@/utils/request'

// 查询供应商订单明细列表
export function listScmSupplierOrderItems(query) {
  return request({
    url: '/scm/scmSupplierOrderItems/list',
    method: 'get',
    params: query
  })
}

 

export function listScmSupplierOrderItemsWithOrderInfo(query) {
  return request({
    url: '/scm/scmSupplierOrderItems/listSupplierOrderItemsWithOrderInfo',
    method: 'get',
    params: query
  })
}

// 查询供应商订单明细详细
export function getScmSupplierOrderItems(itemId) {
  return request({
    url: '/scm/scmSupplierOrderItems/' + itemId,
    method: 'get'
  })
}

// 新增供应商订单明细
export function addScmSupplierOrderItems(data) {
  return request({
    url: '/scm/scmSupplierOrderItems',
    method: 'post',
    data: data
  })
}

// 修改供应商订单明细
export function updateScmSupplierOrderItems(data) {
  return request({
    url: '/scm/scmSupplierOrderItems',
    method: 'put',
    data: data
  })
}

// 删除供应商订单明细
export function delScmSupplierOrderItems(itemId) {
  return request({
    url: '/scm/scmSupplierOrderItems/' + itemId,
    method: 'delete'
  })
}
